package io.renren.modules.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.JsonResult;
import io.renren.common.utils.StatusCode;
import io.renren.modules.app.dao.ReportBankaccDao;
import io.renren.modules.app.dao.UserDao;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.service.AppBankWebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service("bankWebService")
public class AppBankWebServiceImpl extends ServiceImpl<UserDao, UserEntity> implements AppBankWebService {


    @Autowired
    private ReportBankaccDao reportBankaccDao;

    @Override
    public JsonResult bankWebService() {
        //  List<Map<String, Object>> listMap = new ArrayList<Map<String, Object>>();
        List<Map<String, Object>> list = reportBankaccDao.bankWebService();


        return new JsonResult(StatusCode.OK, list);

        //  return R.ok().put("data", list);
    }
}

